import java.util.Scanner;
public class ducks {

	public static void main (String[] args){
		int lngth;
		Scanner input= new Scanner(System.in);
		System.out.println("LENGHT?");
		lngth = input.nextInt();
		int[] ary=new int[lngth];
		for(int i=0;i<lngth;i++){
			int blu=i+1;
			System.out.println("Whats the number "+i+" ?");
			ary[i]=input.nextInt();
		}
		Sorter sorter = new Sorter
		sorter.sort(ary[],lngth);
	}
	void sort(int[] array, int lenght) {
		for(int i=0;i<lenght;i++);
		int i = 0;
		int smll=array[i];
		int index=i;
		int sort=array[i];
		for (int j=i+1;j<lenght;j++){
			if(array[index]>array[i]){
				smll=array[j];
				index=j;
			}
			int temp=array[i];
			array[i]=smll;
			array[index]=temp;
		}
	}
	for (int i= 0; i<length; i++){
		System.out.println(array[i]);
		}
	}
}
